﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatterns.Factory.Model
{
    public class Orange:Fruit
    {
        public Orange(string name, int size, string color) : base(name, size, color)
        {
            Grade = "B";
        }
        public string Grade { get; set; }

        public override string ToString()
        {
            return string.Format("{0},Grade:{1}", base.ToString(), Grade);
        }

        public override void Show()
        {
            Console.WriteLine(this.ToString());
        }
    }
}
